package com.smart.service.impl;

import com.smart.entity.EnvironmentThresholds;
import com.smart.mapper.EnvironmentThresholdsMapper;
import com.smart.service.IEnvironmentThresholdsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 环境数据阈值表 服务实现类
 * </p>
 *
 * @author Cookies
 * @since 2024-05-19
 */
@Service
public class EnvironmentThresholdsServiceImpl extends ServiceImpl<EnvironmentThresholdsMapper, EnvironmentThresholds> implements IEnvironmentThresholdsService {
    @Override
    public EnvironmentThresholds getEnvironmentThresholdsByType(String type) {
        return lambdaQuery().eq(EnvironmentThresholds::getType, type).one();
    }
}
